package com.chiga.holder;

import com.opteron.model.UserInfo;

public abstract class ThreadHolder {
	private static ThreadLocal<UserInfo> userInfoHolder = new ThreadLocal<UserInfo>();
	
	public static void setUser(UserInfo user) {
		userInfoHolder.set(user);
	}
	
	public static UserInfo getUser() {	
		return userInfoHolder.get();
	}
	
	public static void clear() {
		userInfoHolder.remove();
	}
}
